<template>
  <div class="logincontainer">
    <div class="logbox">
         <div class="avatar_box">
        <img src="@/assets/123.jpg" alt="" />
      </div>
     <div class="login_form">
         <el-form ref="form" :model="loginForm" label-width="80px">
        <el-form-item >
            <el-input   placeholder="请输入账号"></el-input>
        </el-form-item>
        <el-form-item >
            <el-input   placeholder="请输入密码"></el-input>
        </el-form-item>
        <el-form-item class="btn">
           <el-button type="primary">登录</el-button>
           <el-button type="info">注册</el-button>
        </el-form-item>
      </el-form>
     </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      loginForm: {}
    }
  }
}
</script>
<style>
.logincontainer {
    height: 100%;
    background-color: #2b4b6b;
}
.logincontainer .logbox {
  width: 450px;
  height: 300px;
  background: #fff;
  border-radius: 3px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.avatar_box {
     position: absolute;
    left: 50%;
    width: 130px;
    height: 130px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 0 10px #ddd;
    transform: translate(-50%, -50%);
}
.avatar_box img  {
   width: 100%;
      height: 100%;
      border-radius: 50%;
      background-color: #eee
}
.login_form {
   position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
</style>
